package com.weishi.project.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 类型枚举
 **/
public enum TypeEnum {


    /**
     * 个人请假状态 （ 1、伤病 2、病假 3、事假 4、过敏 5、外训 ）
     */
    INJURY(1,"伤病"),
    SICK_LEAVE(2,"病假"),
    PERSONAL_LEAVE(3,"事假"),
    ALLERGY(4,"过敏"),
    TRAINING(5,"外训"),

    ;






    TypeEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    @JsonValue
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    @EnumValue
    private final  int code;
    private String value;

}

